<%--
  Created by IntelliJ IDEA.
  User: Demon-pro
  Date: 2015/7/21
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--锅炉参数-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>锅炉参数
                                    <span class="help-inline">
                                         &nbsp; &nbsp; &nbsp; &nbsp;不引用锅炉数据
                                     <input type="checkbox" id="sfjglState"
                                            name="sfjglState"
                                     <%--@elvariable id="blowerDes" type="com.infitecs.eyas.blower.model.BlowerDes"--%>
                                     <c:if test="${blowerDes!=null&&operateField.ycfjglState=='1'}">
                                            checked
                                     </c:if>
                                             >
                                 </span>
                                        </h2>
                                    </div>

                                    <div class="col-md-12">
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                   name="sfjglLabel"    for="E1">锅炉燃煤量</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E1" name="sfjgl"  value="${blowerDes.e1Show}"/>
                                                    <span class="help-inline">
                                                        t/h
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="sfjglLabel"    for="E4">空气预热器漏风率(保证值)</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E4" name="sfjgl" value="${blowerDes.e4Show}" />
                                                    <span class="help-inline">
                                                       %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="sfjglLabel"    for="E2">炉膛漏风率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E2" name="sfjgl" value="${blowerDes.e2Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="sfjglLabel"    for="E5">机械未完全燃烧损失</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E5" name="sfjgl" value="${blowerDes.e5Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="sfjglLabel"    for="E3">炉膛出口过量空气系数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E3" name="sfjgl" value="${blowerDes.e3Show}"/>
                                                    <span class="help-inline">
                                                        /
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                        >空气预热器型式</label>

                                                <div class="col-md-8">
                                                    <select id="E6">
                                                        <option value="2" <c:if test="${blowerDes.e6 == 2.0}">selected="selected" </c:if> >回转式三分仓</option>
                                                        <option value="1" <c:if test="${blowerDes.e6 == 1.0}">selected="selected" </c:if> >回转式四分仓</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--锅炉参数-->
                                <!--空气系统-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>空气系统</h2>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       name="sfjglLabel"  for="E7">锅炉一次风率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E7" name="sfjgl" value="${blowerDes.e7Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--空气系统-->
                                <!--风机设计-->
                                <div class="col-md-12">
                                    <div class="col-md-12 margin-bottom-10">
                                        <h2>风机设计</h2>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E13">容器裕度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E13" value="${blowerDes.e13Show}" />
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E14">压头裕度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E14" value="${blowerDes.e14Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-4 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E35">并列运行风机台数</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E35" value="${blowerDes.e35Show}"/>
                                                    <span class="help-inline">
                                                        台
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E15">计算点风机入口空气温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E15" readonly value="${blowerDes.e15Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="control-label col-md-4" style="padding-left: 0"
                                                       for="E16">设计点风机入口空气温度</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E16" readonly value="${blowerDes.e16Show}"/>
                                                    <span class="help-inline">
                                                        ℃
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E45">计算点风机效率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E45" value="${blowerDes.e45Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-md-6 margin-bottom-10" style="padding-left: 0">
                                            <div class="form-group">
                                                <label class="aTypeStyle control-label col-md-4" style="padding-left: 0"
                                                       for="E56">风机设计点效率</label>

                                                <div class="col-md-8">
                                                    <input type="text" class="form-control input-inline" id="E56" value="${blowerDes.e56Show}"/>
                                                    <span class="help-inline">
                                                        %
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--风机设计-->
                                <div class="form-body">
                                     <div class="row">
                                         <div class="col-md-5">
                                         </div>
                                         <div class="col-md-7">
                                             <button type="button" class="btn green" id="save"
                                                     onclick="BlowerDes.blowerDesDesSave()">确定
                                             </button>
                                             <button type="button" class="btn green" id="nextPage"
                                                     onclick="BlowerDes.blowerDesDesNext()">下一页
                                             </button>
                                         </div>
                                         <!--/span-->
                                     </div>
                                     <!--/span-->
                                 </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${blowerDes==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript" src="<c:url value="/js/blower/BlowerDes1.js"/>"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var caseId = $("#caseId").val();
        var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == "" || step != "") {
            var obj = getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }

        <%
         String message = (String) request.getAttribute("message");
         if(message!=null&&!"".equals(message)){
         if(message.equals("success")){
         %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
        %>

        BlowerDes.init();
        BlowerDes.sfjglStateClick($("#sfjglState"),1)
    })
</script>
</body>
</html>
